<h1>留言</h1>

<%= error_messages_for :post %>

<% form_for @post, :html => { :class => "f-wrap-1"} do |f| %>
  <fieldset>
    <label><b><span class="req">*</span>名稱</b>
    <%= f.text_field :user_name %><br />
    </label>

    <label><b>URL</b>
    <%= f.text_field :user_link %><br />
    </label>

    <label><b><span class="req">*</span>內容</b>
    <%= f.text_area :content %><br />
    </label>

    <img src="/noisy_image/code_image">
    <br />輸入驗證碼: <%= text_field_tag(:typed_code) %>

    <div class="f-submit-wrap">
      <%= f.submit "Create", :class => "f-submit" %>
    </div>
  </fieldset>
<% end %>

<%= back_to_posts %>